package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 入科诊断明细表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 11:11:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_hl7_rk_zd_detail")
public class BHl7RkZdDetail extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 事件id
     */
    @TableField(value = "event_id", condition = EQUAL)
    @Schema(description = "事件id")
    private Long eventId;
    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 姓名
     */
    @TableField(value = "patient_name", condition = LIKE)
    @Schema(description = "姓名")
    private String patientName;
    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;
    /**
     * 入科时间
     */
    @TableField(value = "rk_time", condition = EQUAL)
    @Schema(description = "入科时间")
    private LocalDateTime rkTime;
    /**
     * 诊断代码
     */
    @TableField(value = "zd_ident", condition = LIKE)
    @Schema(description = "诊断代码")
    private String zdIdent;
    /**
     * 诊断名称
     */
    @TableField(value = "zd_name", condition = LIKE)
    @Schema(description = "诊断名称")
    private String zdName;
    /**
     * 诊断标志A入院F出院
     */
    @TableField(value = "zd_sign", condition = LIKE)
    @Schema(description = "诊断标志A入院F出院")
    private String zdSign;
    /**
     * 护理等级
     */
    @TableField(value = "nursing_level", condition = LIKE)
    @Schema(description = "护理等级")
    private String nursingLevel;



}
